/*
 * Copyright (c) 2020 MariaDB Corporation Ab
 * Copyright (c) 2023 MariaDB plc, Finnish Branch
 *
 * Use of this software is governed by the Business Source License included
 * in the LICENSE.TXT file and at www.mariadb.com/bsl11.
 *
 * Change Date: 2027-04-10
 *
 * On the date above, in accordance with the Business Source License, use
 * of this software will be governed by version 2 or later of the General
 * Public License.
 */
$colors: (
    'primary': $primary,
    'accent': $accent,
    'anchor': $anchor,
    'text': $text,
    'small-text': $small-text,
    'text-subtle': $text-subtle,
    'navigation': $navigation,
    'code-color': $code-color,
    'success': $success,
    'error': $error,
    'warning': $warning,
    'info': $info,
    'alert': $alert,
    'notice': $notice,
    'debug': $debug,
    'separator': $separator,
    'grayed-out': $grayed-out,
    'table-border': $table-border,
    'tr-hovered-color': $tr-hovered-color,
    'selected-tr-color': $selected-tr-color,
    'deep-ocean': $deep-ocean,
    'blue-azure': $blue-azure,
    'electric-ele': $electric-ele,
);

.mxs-color-helper {
    @each $name, $value in $colors {
        &.bg-#{$name} {
            background: $value !important;
        }
        &.text-#{$name} {
            color: $value !important;
        }
        &.border-#{$name} {
            border-color: $value !important;
        }
        &.all-border-#{$name} {
            border: thin solid $value !important;
        }
        &.border-top-#{$name} {
            border-top: thin solid $value !important;
        }
        &.border-right-#{$name} {
            border-right: thin solid $value !important;
        }
        &.border-bottom-#{$name} {
            border-bottom: thin solid $value !important;
        }
        &.border-left-#{$name} {
            border-left: thin solid $value !important;
        }
    }
}
